package com.zking.seckillpro.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 响应枚举类，用于定义所有返回结果码
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum  JsonResponseStatus {
    SUCCESS(200,"OK"),
    ERROR(500,"内部错误"),
    USERNAME_PASSWORD_EMPTY(100101,"账号或密码不能为空"),
    MOBILE_ERROR(100102,"手机号码格式错误"),
    USER_EMPTY(100103,"用户不存在"),
    PASSWORD_ERROR(100104,"密码错误"),
    TOKEN_ERROR(100105,"令牌过期"),
    ;

    private int code;//状态码
    private String msg;//状态码所对应的状态信息
}
